Tip
You cannot back up to a
critical volume. A critical volume is any drive that includes the system
partition and the boot partition, and holds the paging file and any
Active Directory database files.
Restoring System State Data with wbadmin
After you back up system
state data, you can restore it. However, you need to have version
information for the commands. You can get version information for
backups stored on the system with the following command:
wbadmin get versions [-backupTarget: VolumeName
| NetworkSharePath]
For example, if you back up data to the E: drive, you can use the following command:
wbadmin get versions -backuptarget:e:
The following listing shows the output of this command, including the key piece of information you need: The version is 01/03/2011-20:51.
C:\>wbadmin get versions -backuptarget:e:
wbadmin 1.0 - Backup command-line tool
(C) Copyright 2004 Microsoft Corp.
Backup time: 1/3/2011 3:51 PM
Backup target: Fixed Disk labeled E:
Version identifier: 01/03/2011-20:51
Can Recover: Application(s), System State
The command you use to restore system state data is as follows:
wbadmin start systemstaterecovery
-showsummary | -version:version-identifier
[-backuptarget:volume-name | network-share-path]
[-machine:backup-machine-name]
[-recoverytarget:target-path-for-recovery] [-authsysvol] [-quiet]
The following table describes these switches.
Start systemstaterecovery Switches | Comments |
---|
-showsummary C:\>wbadmin start systemstaterecovery -showsummary
| Reports
the summary of the last system state recovery. It shows the status of
the system after the recovery and after it reboots.
Note
This option cannot be accompanied by any other options.
|
-version:version-identifier -version: 01/03/2011-20:51
| Version identifier of the backup is in the format of mm/dd/yyyy-hh:mm:
Tip
You can get the information with the wbadmin get versions command.
|
-backuptarget: [volume-name | network-share-path] -backuptarget:e:
| Specifies the storage location that contains the backup. |
-machine:backup-machine-name -machine:dc1
| Specifies
the name of the computer for which you want to do the recovery. This is
useful when multiple computers are backed up to the same location. The
default is the local computer. |
-recoverytarget:target-path-for- recovery -recoverytarget:d:
| Identifies
the existing directory where you want to restore the data. You can use
this to restore the data to an alternative location. |
-authsysvol | Performs an authoritative restore of the SYSVOL folder. |
-quiet | Runs the command without prompting the user for input. |
For example, you can issue the following command to restore system state data on a server:
wbadmin start systemstaterecovery -version:01/03/2011-20:51
The following listing shows what you see when the restore has completed.
Summary of recovery:
--------------------
Restore of system state completed successfully [1/3/2011 7:31 PM]
Log of files successfully restored
'C:\Windows\Logs\WindowsServerBackup\SystemStateRestore
03-01-2011 18-33-20.log'
Please restart the machine to complete the operation.
NOTE: When you restart your server, System State Recovery will
attempt to recover many system files which may take several
minutes to complete depending on the number of files that are
getting replaced. The machine might reboot multiple times in the process.
Please be patient and do not interrupt the reboot process.
Tip
If the server is a domain controller, you need to restore system state data while in directory services mode.